﻿@model IEnumerable<Work04_01.Models.POJO.AssetLevel2>

<p>
    @Html.ActionLink("添加", "AddDepartmentalAssets2" ,new { assetLevel1Id = @TempData["assetLevel1Id"] })
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.assetLevel1Id)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.assetLevel2Id)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.assetName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ownerDeptId)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ownerId)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.unit)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.number)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
<tr>
    <td>
        @Html.DisplayFor(modelItem => item.assetLevel1Id)
    </td>
    <td>
        @Html.DisplayFor(modelItem => item.assetLevel2Id)
    </td>
    <td>
        @Html.DisplayFor(modelItem => item.assetName)
    </td>
    <td>
        @Html.DisplayFor(modelItem => item.ownerDeptId)
    </td>
    <td>
        @Html.DisplayFor(modelItem => item.ownerId)
    </td>
    <td>
        @Html.DisplayFor(modelItem => item.unit)
    </td>
    <td>
        @Html.DisplayFor(modelItem => item.number)
    </td>
    <td>
        @Html.ActionLink("修改数量", "UpdateDepartmentalAssets2", new { assetLevel1Id = item.assetLevel1Id,  assetLevel2Id = item.assetLevel2Id}) 
        
    </td>
</tr>
}

</table>
